<!DOCTYPE html>
<html class=reftest-wait>
<title>Nested group name should match direct parent</title>
<meta name=fuzzy content="maxDifference=0-255; totalPixels=0-1250">
<link rel="help" href="https://drafts.csswg.org/css-view-transitions-2/">
<link rel="match" href="nested-ref-100.html">
<script src="/common/reftest-wait.js"></script>
<script src="resources/compute-test.js"></script>
<style>
    body {
        margin: 0;
    }
    div {
        position: absolute;
        width: 25px;
        height: 25px;
        transform-origin: 0 0;
        scale: 2;
    }

    .parent {
        view-transition-name: parent;
        top: 50px;
        left: 50px;
    }

    .child {
        top: 25px;
        left: 25px;
        view-transition-name: child;
        view-transition-group: parent;
        background: green;
    }
</style>
<body>
    <div class="parent">
        <div class="child"></div>
    </div>
</body>